extends layout

block content
  div(class='container')
    div(class='row')
      h2 Leetcode Leaderboard
    div(class='row')
      a(href='https://gitee.com/hedonihilist/leetcode-today') 源代码
    div(class='row col-md-12')
      table(class='table table-striped', stype='width:100%', border='1')
        thead
          tr
            th User
            th Today
            th Problems
            th Id
        tbody
          each status in status_list
            tr
              td 
                a(href='https://leetcode-cn.com/u/' + status.user_slug) #{status.user_slug}
              td 
                span #{status.problems.length}
                if status.problems.length > 0
                  i(class='far fa-calendar-check',style='color:green')
                  if status.problems.length == status_list[0].problems.length
                    i(class='fas fa-crown', style='color:#E24144')
                  br
              td 
                each problem in status.problems
                  if problem.solved
                    i(class='far fa-check-circle',style='color:green')
                  else
                    i(class='far fa-times-circle',style='color:red')
                  a(href='https://leetcode-cn.com/problems/' + problem.slug) #{problem.name}
                  br
              td 
                each problem in status.problems
                  span #{problem.frontendId}
                  br
        
